machine prepare